package com.example.demo.entity;

import java.time.LocalDateTime;

public class NewTaskFlow {
    private Long id;                 // 任务流程表主键ID
    private Long taskId;             // 任务ID，关联 task 表
    private Long flowId;             // 流程ID，关联流程表
    private LocalDateTime assignedAt; // 任务分配到流程的时间
    private Long dataSourceId;       // 数据源ID
    private Boolean isDistributed;   // 是否已分发：0-未分发，1-已分发
    private LocalDateTime distributedAt; // 分发时间
    
    public Long getId() {
        return id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
    
    public Long getTaskId() {
        return taskId;
    }
    
    public void setTaskId(Long taskId) {
        this.taskId = taskId;
    }
    
    public Long getFlowId() {
        return flowId;
    }
    
    public void setFlowId(Long flowId) {
        this.flowId = flowId;
    }
    
    public LocalDateTime getAssignedAt() {
        return assignedAt;
    }
    
    public void setAssignedAt(LocalDateTime assignedAt) {
        this.assignedAt = assignedAt;
    }
    
    public Long getDataSourceId() {
        return dataSourceId;
    }
    
    public void setDataSourceId(Long dataSourceId) {
        this.dataSourceId = dataSourceId;
    }
    
    public Boolean getIsDistributed() {
        return isDistributed;
    }
    
    public void setIsDistributed(Boolean isDistributed) {
        this.isDistributed = isDistributed;
    }
    
    public LocalDateTime getDistributedAt() {
        return distributedAt;
    }
    
    public void setDistributedAt(LocalDateTime distributedAt) {
        this.distributedAt = distributedAt;
    }
}